<!DOCTYPE html>

<html >
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" type="text/css" href="../layui/css/layui.css">
</head>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
<script type="text/html" id="switchTpl">
    <!-- 这里的 checked 的状态只是演示 -->
    <input type="checkbox" id="type" disabled value="{{d.type}}" lay-skin="switch" lay-text="管理员|普通用户" lay-filter="statusDemo" {{ d.type == 1 ? 'checked' : '' }}>
</script>
<script type="text/html" id="barbtn">
    <div class="layui-btn-group">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="add">
            <i class="layui-icon">&#xe654;</i>
        </button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="delete">
            <i class="layui-icon">&#xe640;</i>
        </button>
    </div>
</script>
<body>
<div class="demoTable">
    搜索用户名:
    <div class="layui-inline">
        <input class="layui-input" style="height: 30px;" name="videoDesc" id="demoReload" autocomplete="off">
    </div>

    用户类型:
    <select name="searchSta" id="searchType"  lay-filter="type" lay-verify="required" style="width: 100px;height: 30px;">
        <option value="">请选择</option>
        <option value="0">普通用户</option>
        <option value="1">管理员</option>
    </select>
    <button class="layui-btn" data-type="reload" style="height: 30px;" id="search">搜索</button>
</div>
<table class="layui-hide" id="user" lay-filter="usertest"></table>
<script type="text/javascript" src="../layui/layui.js"></script>
<script type="text/javascript" src="../js/userInfo.js"></script>
</body>
</html>
